package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.CartGoodsAllPriceBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetCartAllGoodPriceIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetCartAllGoodPriceModel extends RetrofitBaseModel implements GetCartAllGoodPriceIface<CartGoodsAllPriceBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetCartAllGoodPriceModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getCartAllGoodPrice(String userid, String shopid, TListener<CartGoodsAllPriceBean> tListener) {
        Call<CartGoodsAllPriceBean> call = allService.getCartAllGoodPrice(userid,shopid);
        callenqueue(call,tListener);
    }
}
